{include file="head.html"}
{include file="plus/ke_plus.html"}
<div id="jywrap">
  <div id="maincontent">
    <div class="wrap">
      <div class="crumbs"> <a href="__APP__/index/home">{lang='内容管理'}</a> <a href="#">{lang='文章管理'}</a> </div>
      <hr />
      <br />
      <form action="__URL__/edit" method="post">
        <div class="infobox">
          <h3>{lang='编辑文章'}</h3>
          <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100">{lang='所属栏目'}：</td>
              <td><select name="cid"  id="cid" onChange="ajax_fields()" >
                  <option value="">{lang='选择分类'}</option>
                  <?php if(is_array($cat)) { foreach($cat as $vo){ ?>
                  <?php if($vo['id']==$info['cid']){ ?>
                  <option value="{$vo['id']}" selected="selected" >{$vo['cname']}</option>
                  <?php }else{ ?>
                  <option value="{$vo['id']}"  <?php if($vo['type']==0 || $vo['mid']<>$mid ){ ?>style="background-color:#ccc"  disabled="disabled" <?php } ?> >{$vo['cname']}</option>
                  <?php } ?>
                  <?php }} ?>
                </select>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{lang='置顶'}
                <?php if($info['hits']){ ?>
                <input  name="hits" id="hits" type="checkbox" value="1" checked />
                <?php }else{?>
                <input  name="hits" id="hits" type="checkbox" value="1" />
                <?php }?>
                {lang='推荐'}
                <?php if($info['good']){ ?>
                <input type="checkbox"  name="good" id="good" value="1" checked />
                <?php }else{?>
                <input type="checkbox"  name="good" value="1" id="good" />
                <?php }?>
                &nbsp;&nbsp;{lang='排序'}：
                <input  name="sorter" id="sorter" type='text' class="regular-text" style="width:30px; height:20px !important; line-height:20px !important" value="{$info['sorter']}" /></td>
            </tr>
            <tr>
              <td>{lang='内容标题'}：</td>
              <td><input name="title" type='text' class="regular-text" id="title" value="{$info['title']}" />
                <input name="style_color" type='text' class="regular-text iColorPicker style_color" id="color"  style=" background-repeat:no-repeat; background-position:bottom left; width:60px;" value="{$info['style_color']}" />
                <a id="icp_color" onclick="iColordisplay('color','icp_color')" href="javascript:void(null)"> <img align="absmiddle" style="border: 0pt none; margin: 0pt 0pt 0pt 3px;" src="__PUBLICURL__/ui/images/color.gif"> </a> &nbsp;&nbsp;&nbsp;<strong>{lang='加粗'}</strong>
                <input type="checkbox"  name="style_bold" id="style_bold" value="1" <?php if($info['style_bold']){ ?> checked="checked"<?php }?> />
                <em>{lang='斜体'}</em>
                <input type="checkbox"  name="style_italic" id="style_italic" value="1" <?php if($info['style_italic']){ ?> checked="checked"<?php }?>  /></td>
            </tr>
            <tr>
              <td>{lang='英文标题'}：</td>
              <td><input class="regular-text" type='text' id="pinyin" value="{$info['pinyin']}" name="pinyin" />
                &nbsp;&nbsp;&nbsp;{lang='只允许英文数字下划线留空则将标题自动转换成拼音'}</td>
            </tr>
            <tr>
              <td>{lang='外部链接'}：</td>
              <td><input class="regular-text" type='text' id="url" value="{$info['url']}" name="url" />
                &nbsp;&nbsp;{lang='浏览量'}：
                <input  name="views" id="views" type='text' class="regular-text" value="{$info['views']}" style="width:30px; height:20px !important; line-height:20px !important" /></td>
            </tr>
            <tr>
              <td>{lang='文章缩略图'}：</td>
              <td><div style="float:left">
                  <input name="pic" class="regular-text" id="pic" style="width:250px" value="{$info['pic']}" />
                  &nbsp;<a id="loadimage" href="javascript:openimage()" >{lang='预览'}</a>&nbsp;<a class="charu" href="javascript:void 0" onclick="open_thumbnail()" >{lang='选择缩略图'}</a></div></td>
            </tr>
            <tr>
              <td>{lang='批量上传'}：</td>
              <td><div id="sapload" style="float:left"></div></td>
            </tr>
            <tr>
              <td>{lang='增强功能'}：</td>
              <td>{include file="plus/editor_plus.html"}</td>
            </tr>
            <tr>
              <td colspan="2"><textarea id="editor" name="content" cols="0" style="width:100%; height:400px;" rows="5" class="regular-textarea" >{$content['content']}</textarea></td>
            </tr>
            <tr>
              <td>{lang='附加功能'}：</td>
              <td><input name="picoff" type="checkbox" id="picoff" value="1"<?php if($model_info['default_picoff']==1){ ?> checked="checked"<?php } ?> />
                {lang='远程抓图'} &nbsp;&nbsp;
                <input name="onepic" type="checkbox" id="onepic" value="1"<?php if($model_info['default_onepic']==1){ ?> checked="checked"<?php } ?> />
                {lang='获取第一张图片为缩略图'} &nbsp;&nbsp;
                <input name="gettag" type="checkbox" id="gettag" value="1"<?php if($model_info['default_gettag']==1){ ?> checked="checked"<?php } ?> />
                {lang='自动提取关键词和TAG'}</td>
            </tr>
            <tr>
              <td   align="left" valign="middle">{lang='文章摘要'} ：</td>
              <td><textarea name="description" id="description" cols="0" rows="5" class="regular-textarea" style="width:300px !important; height:80px"  onKeyUp="check_length();">{$info['description']}</textarea>
                <a onclick="limitL()" href="javascript:void 0">{lang='提取摘要'}</a></td>
            </tr>
            <tr>
              <td   align="left" valign="middle">{lang='文章关键字'}:</td>
              <td><input name="keywords" type='text' class="regular-text" id="keywords" value="{$info['keywords']}" />
                <a class="hq" href="javascript:getkey()">{lang='提取关键词'}</a></td>
            </tr>
            <tr>
              <td   align="left" valign="middle">{lang='文章作者'}:</td>
              <td><input class="regular-text" type='text' id="author" name="author" value="{$info['author']}" /></td>
            </tr>
            <tr>
              <td align="left" valign="middle">{lang='发布时间'}:</td>
              <td><input name="time" type='text' class="regular-text" id="time" value="<?php echo date('Y-m-d H:i:s',$info['time']); ?>" /></td>
            </tr>
            <?php module('common')->plus_hook_tpl('content','edit',$info) ?>
              </tbody>
            
            <tbody id="channel_exp">
            
            {include file="plus/plus_fields.html"}
              </tbody>
            
            <tr>
              <td  align="left" valign="middle">{lang='是否发布'} ：</td>
              <td><?php if($info['status']){ ?>
                <input type="radio" name="status" value="1" checked/>
                {lang='发布'}
                <input type="radio" name="status" value="0">
                {lang='草稿'}
                <?php }else{?>
                <input type="radio" name="status" value="1"/>
                {lang='发布'}
                <input type="radio" name="status" value="0" checked>
                {lang='草稿'}
                <?php }?></td>
            </tr>
          </table>
        </div>
        <div class="submit_body">
          <input name="psot_do" id="psot_do" type="hidden" value="yes" />
          <input type="hidden" name="id" id="id" value="{$info['id']}">
          <button class="regular-button" type="submit" >{lang='编辑'}</button>
        </div>
      </form>
    </div>
  </div>
</div>
{include file="article/content_upload.html"} 
{include file="plus/ajax_fields.html"} 
{include file="plus/pic_view.html"}
</body></html>